package com.lanqiao.dao.impl;

import com.lanqiao.dao.BookPicDao;
import com.lanqiao.entity.BookPicInfo;
import com.lanqiao.util.ORMUtil;

public class BookPicDaoImpl implements BookPicDao {

    /**
     * 插入小图
     * @param bookPicInfo
     * @return
     */
    @Override
    public int insertBookPic(BookPicInfo bookPicInfo) {
        String sql = "insert into tb_book_pic(book_id,pic_name) values (?,?)";

        return new ORMUtil().executeDML(sql,bookPicInfo.getBook_id(),bookPicInfo.getPic_name());
    }
}
